<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/view/common/taglibs.jsp"%>
<html>
	<head>
		<title>释放单管理-金融风险管理系统</title>
		<script src="${contextPath}/scripts/jquery/jquery-1.8.3.min.js" type="text/javascript"></script>
		<script src="${contextPath}/scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
		<script src="${contextPath}/scripts/common.js" type="text/javascript"></script>
		<script type="text/javascript">
		function jumpPage(page) {
			var searchForm = document.searchForm;
			searchForm.action = "<s:property value='contextPath'/>/cm/storageIndex.do?currentPage=" + page;
			searchForm.submit();
		}
		
		function exportStore(){
			var searchForm = document.searchForm;
			searchForm.action = "<s:property value='contextPath'/>/cm/exportStore.do?currentPage=${currentPage}";
			searchForm.submit();
		}
		function storageIndex(){
			var searchForm = document.searchForm;
			searchForm.action = "<s:property value='contextPath'/>/cm/storageIndex.do?currentPage=${currentPage}";
			searchForm.submit();
		}
		</script>
	</head>
	<body>
	<div class="navigation">
	    <span>
	    <a href="javascript:window.history.forward();"><img src="${contextPath}/images/go_nav_btn.png" /></a>
	     <a href="javascript:window.history.forward();">前进</a>
	    <a href="javascript:window.location.reload();"><img src="${contextPath}/images/refresh_nav_btn.png" /></a>
	     <a href="javascript:window.location.reload();">刷新</a>
	    </span>合格证管理&gt;&gt;库存查询
    </div>
    
    <div class="xt_main_right_center">
      <form name="searchForm" id="searchForm" method="post" action="storageIndex.do">
	      <table width="100%" border="0" cellpadding="0" cellspacing="0"  style="border-color:#CCCCCC;">
	        <tr>
	          <td width="18%"  class="left-td-width-bg">&nbsp;金融机构:&nbsp;</td>
	          <td><label>
	            <select name="financial.id" id="select">
	              <option value="">****请选择****</option>
		             <s:iterator value="fiList" status="i" id="b">
			          <option <s:if test='financial.id==#b.id'>selected="selected"</s:if>   value="${b.id }">${b.name }</option>
			          </s:iterator>
                </select>
              </label></td>
	          <td  width="18%"  class="left-td-width-bg">渠道:</td>
	          <td><select name="brand.name" id="select2">
	             <option value="">****请选择****</option>
			         <s:iterator value="brandList" status="i" id="b">
			          <option <s:if test='brand.name==#b.name'>selected="selected"</s:if>  value="${b.name }">${b.name }</option>
			          </s:iterator>
              </select></td>
	         
            </tr>
	        <tr>
	        	<td width="18%" class="left-td-width-bg">经销店:&nbsp;</td>
	        	<td width="22%"><label>
	        	 <jysz:autocompleter name="markShop" cssClass="input_ajax" classType="com.jysz.certificate.persistence.model.system.Shop" displayFields="shopName,shopMark" fieldMapping="{'markShop':'shopName'}">
</jysz:autocompleter>
	        	 <!-- <input type="text"  name="shopDTO.shopName" id="shopname" value="${shopDTO.shopName }" />  -->
   	        </label></td>
	        	<td width="28%"  class="left-td-width-bg"><span class="left-td-width-bg">区域经理:&nbsp;</span></td>
	            <td width="32%">
<jysz:autocompleter name ="userName" cssClass="input_ajax" classType="com.jysz.certificate.persistence.model.system.User" displayFields="name,realName" fieldMapping="{'userId':'id'}">
</jysz:autocompleter>
	           <!-- <input type="text"  name="userId" id="userId" value="${userId }"/>-->
	           </td>
	        </tr>
	        
	        <tr style="background:url(${contextPath}/images/xt_main_right_dhbj.jpg) repeat-x;">
			    <td height="28" colspan="8" align="right" style="border-bottom:none;"> 
			    	<input type="reset" value="" class="btn_clear_form" onclick="clearForm(this.form);return false;"/>
			    	<input name="" type="button" name="submit" value="" onclick="storageIndex();"  class="btn_query"/>
			    </td>
		    </tr>
	      </table>
      </form>
      </div>
      <br/>
      
       <table width="100%" border="0" cellpadding="0" cellspacing="0">
		  <tr>
		    <td height="25" align="left"><font color="#0066CC"><strong>查询结果：</strong></font></td>
		    <td height="25" align="right">
		  	   &nbsp;<a href="javascript:exportStore();"><img src="${contextPath}/images/export.png" alt="导出"  /></a>
            </td>
		  </tr>
		</table>
      
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
	  <tr> 
	    <td class="top-td-width-bg">序号</td>
	    <td class="top-td-width-bg">店号</td>
	    <td class="top-td-width-bg">经销商名称</td>
	    <td class="top-td-width-bg">库存数量</td>
	    <td class="top-td-width-bg">对应厂家</td>
	     <td class="top-td-width-bg">驻店顾问</td>
	    <td class="top-td-width-bg">区域经理</td>
	    <td class="top-td-width-bg">操作</td>
	  </tr>
	 <s:iterator value="page.result" status="st" >
			<tr>
			  <td  class="down-center-td-width-bg" align="center"><s:property value="#st.index+1"/></td>
			  <td  class="down-center-td-width-bg"  align="center"><s:property value="shop.shopMark"/></td>
		    <td  class="down-center-td-width-bg"  align="center"><s:property value="shop.shopName"/></td>
		    <td  class="down-center-td-width-bg"  align="center"><s:property value="cfCount"/> </td>
		    <td  class="down-center-td-width-bg"  align="center">
		    	<s:iterator value="shop.brands" status="q" id="a">
      				${a.name },
      			</s:iterator>
		    <s:property value="shop.brand.fullName"/></td>
		    <td  class="down-center-td-width-bg"  align="center"><s:property value="findUserShopByShopId(shop.id)"/></td>
		    <td  class="down-center-td-width-bg"  align="center"><s:property value="getShopUserName(shop.id)"/></td>
		    <td  class="down-center-td-width-bg"  align="center"><a href="seleteTreaty.do?shopIdLong=${shop.id}" title="详情"><img src="${contextPath}/images/chakan.gif" alt="详情" width="16" height="18" border="0" /></a></td>
		</tr>
	</s:iterator>
	<tr bgcolor="#F9FCEF"> 
	 <td colspan="8" align="center">
			<%@ include file="/WEB-INF/view/common/pagination.jsp"%>
	 </td>
	</tr>
	</table>

<br/><br/><br/><br/><br/>
		<div><jsp:include page="/include/footer.inc"></jsp:include></div>
	</body>
</html>